<div id="content">
	<ul class="breadcrumb">
       	<li><a href="<?=site_url()?>admin"><img src="<?=base_url()?>themes/admin/image/home.png" alt=""  style="vertical-align:middle; margin-top:5px;"/></a>
		<?php if($txt['render_path']) : ?>
       		<?php $i = 1;?>
            <?php foreach($txt['render_path'] as $key => $val) :?>
            	<?php if($i == count($txt['render_path'])) : ?>
					<li><?=$key;?></li>
				<?php else : ?>
    	        	<li><a href="<?=$val;?>"><?=$key;?></a></li>
    	       	<?php endif ?>
    	    <?php $i++; ?>
        	<?php endforeach;?>
        <?php endif;?>
    </ul><!--End breadcrumb-->
    <?php if($this->session->flashdata('warning') && $this->session->flashdata('warning') !='') :?>
	    <div class="warning" style="display:none;">
	    	<?php echo $this->session->flashdata('warning');?>
	    </div>
    <?php endif ?>
    <?php if($this->session->flashdata('error') && $this->session->flashdata('error') !='') :?>
	    <div class="show_error" style="display:none;">
	    	<?php echo $this->session->flashdata('error');?>
	    </div>
    <?php endif ?>
    <div class="box">
      	<div class="heading">
          	<h1><img src="<?=base_url();?>admin_template/image/user-group.png" /><?=@$this->titleHeading;?></h1>
            <div class="buttons">
               	<a href="javascript:void(0);" onclick="location.href='<?=URL_ADMIN?>user_group/add/'" class="button"><?=$txt['btnAdd']?></a>
               	<a href="javascript:void(0);" onclick="$('#form_list').submit();" class="button"><?=$txt['btnDel']?></a>
                <a href="javascript:void(0);" onclick="location.href='<?=URL_ADMIN?>user_group/';" class="button"><?=$txt['btnRef']?></a>
            
            </div>
        </div><!--End heading-->
        <div class="content">
			<form id="form_list" method="post" action="<?=$txt['url_action'];?>">
                <input type="hidden" id="act" name="act" value="act_del" />
                	<table width="100%" id="flexme" class="table_content">
       	  				<thead class="header_table">
                        	<tr>
                                  <th width="35" style="text-align:center;"><input type="checkbox" onclick="$('input[name*=\'selected\']').attr('checked', this.checked);" title="Check All / UnCheck All"/>
                                  </th>
                                  <th width="35"><a href="#">#Id</a></th>
                                  <th width="250"><a href="#">Group name</a></th>
                                  <th width="80" class="left"><a href="#">Action</a></th>
            				</tr>
                        </thead>
                        <tbody>
                        	<?php if(isset($groups) && !empty($groups)) : ?>
                        		<?php foreach($groups as $n) : ?>
                        			<tr>
                        				<td style="text-align: center;"><input type="checkbox" name="selected[]" value="<?=$n['group_id']?>" /></td>
                        				<td><?=$n['group_id']?></td>
                        				<td><?=$n['group_name']?></td>
                        				<td>
                        					<a href="<?=$n['url_del']?>" id="action_del_<?=$n['group_id'];?>" onclick="do_del(<?=$n['group_id'];?>); return false;" title="Delete this item"><?=image_asset('delete16.png', '', array('title' => 'Delete this item'))?></a>
                        					&emsp;
                        					<a href="<?=$n['url_edit']?>" title="Modified this item"><?=image_asset('edit16.png', '', array('title' => 'Modified this item'))?></a>
                        				</td>
                        			</tr>	
                        		<?php endforeach ?>
                        	<?php endif ?>
                        </tbody>
                    </table>
                </form><!--End form-->
                
                <div class="pagination">
                	<div class="link">
                    	 <?php if(!empty($page)) :?>
                        <?php echo $page;?>
                        <?php endif;?>
                    </div>
                </div><!--End pagination-->	             
        </div><!--End content-->
    </div><!--End box-->   
</div><!--End content-->